home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
AHIGHVAL.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
56 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_AHighVal( axArray ) --> xHighVal
PARAMETERS:
axArray : array of CHAR, DATE, or NUM elements
SHORT:
Get the highest VALUE from an array of chars, numerics or dates.
DESCRIPTION:
_AHighVal() returns the highest value from an array of Character
Strings, Dates or Numerics.
ALL elements must be of the same type! If the array contains mixed elements,
a run-time error will occur.
If the array in not CHAR, DATE, or NUM, the return value is NIL
NOTE:
See also:
_ALowVal() which returns the lowest value from an array.
_ALowElement() which returns the element number associated with the
lowest value.
_AHighElement() which returns the element number associated with the
highest value.
EXAMPLE:
LOCAL aArray := { 1,5,3,9,12,7 }
t = _AHighVal( aArray )
Result: t = 12
LOCAL aArray := { 'Wallace', 'Jones', 'Taylor', 'Abdul' }
t = _AHighVal( aArray )
Result: t = 'Wallace'
******************************************************************************/